﻿// 功能：
// 描述：
// 作者：温伟鹏
// 日期：2010/6/7 13:06:23

using System;

namespace MeizuSDK.Presentation.Integration
{
    /// <summary>
    /// 当ControlHost.Child属性被修改后，触发此事件
    /// </summary>
    /// <param name="sender">触发此事件的ControlHost</param>
    /// <param name="e">事件参数</param>
    public delegate void ChildChangedEventHandler(object sender,ChildChangedEventArgs e);
    /// <summary>
    /// 为ControlHost.ChildChanged事件提供数据
    /// </summary>
    public class ChildChangedEventArgs:EventArgs
    {
        /// <summary>
        /// 获取Child属性被修改前的值
        /// </summary>
        public System.Windows.Forms.Control PreviousChild
        {
            get;
            private set;
        }
        /// <summary>
        /// 构造ChildChanged事件参数
        /// </summary>
        /// <param name="prevChild">Child属性被赋值前的值</param>
        public ChildChangedEventArgs(System.Windows.Forms.Control prevChild)
        {
            PreviousChild = prevChild;
        }
    }
}
